@extends('admin.base.index')

@section('tables')     
 <div class="col-lg-12">
    <section class="panel">
        <header class="panel-heading">
            修改用户
        </header>
        <div class="panel-body">
            <form role="form" class="form-horizontal adminex-form" action="/admin/user/{{$username->id}}" method="post" enctype="multipart/form-data">
             {{ csrf_field() }}
             {{ method_field('PUT') }}
                <div class="form-group has-success">
                    <label class="col-lg-2 control-label">用户名：</label>
                    <div class="col-lg-4">
                        <input type="text" name="username" id="f-name" class="form-control" value='{{ $username->username }}'>
                    </div>
                </div>
                <div class="form-group has-error">
                    <label class="col-lg-2 control-label">密码：</label>
                    <div class="col-lg-4">
                        <input type="password" name="password" id="l-name" class="form-control" value='{{ $username->password }}'>
                    </div>
                </div>
                <div class="form-group has-error">
                    <label class="col-lg-2 control-label">确认密码：</label>
                    <div class="col-lg-4">
                        <input type="password" name="passname" id="l-name" class="form-control" value='{{ $username->passname }}'>
                    </div>
                </div>
                <div class="form-group has-error">
                    <label class="col-lg-2 control-label">邮箱：</label>
                    <div class="col-lg-4">
                        <input type="text" name="email" id="l-name" class="form-control" value='{{ $username->email }}'>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10">
                       
                        <button class="btn btn-primary" type="submit">确认修改</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
    </div>
@endsection                